package com.book.entity;


import java.io.Serializable;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;


public class CartEntity implements Serializable {


    private Integer totalCount;
    private BigDecimal totalPrice;
    private Map<Long,BookEntity> books = new HashMap<>();

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }


    public Map<Long, BookEntity> getBooks() {
        return books;
    }

    public void setBooks(Map<Long, BookEntity> books) {
        this.books = books;
    }

    @Override
    public String toString() {
        return "CartEntity{" +
                "totalCount=" + totalCount +
                ", totalPrice=" + totalPrice +
                ", books=" + books +
                '}';
    }
}
